#include<iostream>
using namespace std;
int main(){
	int i=0,m=0,n,l;
	char temp;
	char s[50]="";
	while(s[i]!='\n'){
		s[i]=getchar();
		if((s[i]>='a'&&s[i]<='z')||s[i]>='A'&&s[i]<='Z'){
		i++;
		}
	}
	s[i]='\0';
	n=i-1;
	l='a'-'A';
	for(i=0;s[i]!='\0';i++){
	    if(s[i]>='a'&&s[i]<='z'){
	        s[i]=(s[i]+3-'a')%26+'a';
	        s[i]=s[i]-l;
	        continue;
	    }
	    if(s[i]>='A'&&s[i]<='Z'){
	        s[i]=(s[i]+3-'A')%26+'A';
	        s[i]=s[i]+l;
	        continue;
	    }
    }
    while(m<n){
    	temp=s[m];
    	s[m]=s[n];
    	s[n]=temp;
    	m++;
    	n--;
	}
    puts(s);
	return 0;
}
